home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
comm1
/
plog.lha
/
PLog
/
AmiTCP-Install
< prev
next >
Wrap
Text File
|
1996-04-04
|
4KB
|
123 lines
;
; Installation script for PLog
;
; created on 04.04.1996 by Kai Hofmann
;
(if (= @language "english") ;then
(
(set #welcome (cat "Welcome to PLog which is "
"copyright 1996 Kai Hofmann\n\n")
)
(set #iuquest ("What do you want to do with the %s?\n\n" @app-name))
(set #iuc1 "Install")
(set #iuc2 "Uninstall")
(set #use37 ("You must be using Kickstart 2.04 or higher to install and use the %s" @app-name))
(set #choiceyes "Yes")
(set #choiceno "No")
(set #removelib ("Removing %s" @app-name))
(set #libnotfound ("Sorry, could not find %s" @app-name))
(set #endunin ("\nUninstalling %s finished!" @app-name))
)
)
(if (= 0 (askchoice (prompt #iuquest)
(choices #iuc1 #iuc2)
(default 0)
(help @askchoice-help)
)
)
(
; Install
(if (< (/ (getversion) 65536) 37)
(abort #use37)
)
(welcome #welcome)
(complete 0)
(set @default-dest "AmiTCP:bin")
(if (= @language "english") ;then
(
(set #cplprompt ("Copying %s to %s" @app-name @default-dest))
)
)
(set cpu (database "cpu"))
; (if (patmatch cpu "68000")
(copyfiles (prompt #cplpromt)
(source "bin/PLogStart")
(dest @default-dest)
(newname "PLogStart")
(optional "askuser")
(help @copyfiles-help)
)
(complete 20)
(copyfiles (prompt #cplpromt)
(source "bin/PLogEnd")
(dest @default-dest)
(newname "PLogEnd")
(optional "askuser")
(help @copyfiles-help)
)
(complete 40)
(copyfiles (prompt #cplprompt)
(source "doc/PLog.guide")
(dest "AmiTCP:help")
(infos)
(optional "askuser")
(help @copyfiles-help)
)
(complete 60)
(run "echo >>AmiTCP:db/User-Startnet \"AmiTCP:util/parseconfig providerfile AmiTCP:db/Provider.conf*Ncopy ENV:Config_AmiTCP/provider/Name ENV:Config_AmiTCP/provider/Phone ENV: quiet*NPLogStart HOSTNUMBER=*$Phone HOSTNAME=*$Name\"")
(complete 80)
(run "echo >>AmiTCP:db/User-Stopnet \"PLogEnd\"")
; )
(complete 100)
)
;else
(
; Uninstall
(complete 0)
(if (exists "AmiTCP:bin/PLogStart" (noreq))
(delete "AmiTCP:bin/PLogStart"
(prompt #removelib)
(help @delete-help)
(optional "force")
)
(message #libnotfound)
)
(complete 25)
(if (exists "AmiTCP:bin/PLogEnd" (noreq))
(delete "AmiTCP:bin/PLogEnd"
(prompt #removelib)
(help @delete-help)
(optional "force")
)
(message #libnotfound)
)
(complete 50)
(if (exists "AmiTCP:help/PLog.guide" (noreq))
(delete "AmiTCP:help/PLog.guide"
(prompt #removelib)
(help @delete-help)
(optional "force")
)
(message #libnotfound)
)
(complete 75)
(if (exists "AmiTCP:help/PLog.guide.info" (noreq))
(delete "AmiTCP:help/PLog.guide.info"
(prompt #removelib)
(help @delete-help)
(optional "force")
)
)
(complete 100)
(message #endunin
"\n\n"
"Please remove the commands 'PLogStart' from AmiTCP:db/User-Startnet (including the copy and parseconfig commands in front of it) and 'PLogEnd' from AmiTCP:db/User-Stopnet by hand!"
)
(exit (quiet))
)
)